package org.bbmall.bean.store;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 低效门店预警实体类
 * 对应数据库表：ads_low_efficiency_alert
 */
@Data
@TableName("ads_low_efficiency_alert")
public class AdsLowEfficiencyAlert {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 统计日期
     */
    @TableField("stat_date")
    private LocalDate statDate;

    /**
     * 门店ID
     */
    @TableField("store_id")
    private String storeId;

    /**
     * 门店名称
     */
    @TableField("store_name")
    private String storeName;

    /**
     * 近7天日均销售额
     */
    @TableField("avg_daily_sales_7d")
    private BigDecimal avgDailySales7d;

    /**
     * 预警原因
     */
    @TableField("alert_reason")
    private String alertReason;

    /**
     * 改进建议
     */
    @TableField("improvement_suggestions")
    private String improvementSuggestions;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}